package org.thief.frost.system.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.thief.frost.system.value.DataTableJsonVO;

@Controller
public class UserController {

	@RequestMapping(value="queryUsers.do")
	public @ResponseBody DataTableJsonVO queryUsers(){
		System.out.println("enter the queryUsers");
		DataTableJsonVO uv = new DataTableJsonVO();
		uv.setsEcho("10");
		uv.setiTotalDisplayRecords(1);
		uv.setiTotalRecords(1);
		String [][] pageList = new String[1][];
		String [] records = new String[5];
		records[0] = "Trident";
		records[1] = "Internet Explorer 4.0";
		records[2] = "Win 95+";
		records[3] = "4";
		records[4] = "X";
		pageList[0] = records;
		uv.setAaData(pageList);
		//result = JSONArray.fromObject(uv);
		return uv;
	}
	
}
